/**
 * 1. 数据模拟
 * 2. ajax拦截
 * */ 

import Mock from 'mockjs'
import Monent from 'moment'


let attendance = Mock.mock({
    'list|5':[
        {

            'id|+1':1,
            'name':'@cname',
            'date': function () {
                return Monent().format('YYYY-MM-DD');
            },
            'gender|1':['男','女'],
            'age':'@natural(20,25)',
            'isAttend|1':['出勤','缺勤']
       }
    ]}
    
  )



  Mock.mock('http://test.org/attend','get',attendance.list);
  Mock.mock('http://test.org/attend/edit','get',true)